package com.dh.demo;

import java.util.Objects;

public class Order {
    private String name;
    private String address;

    public Order(String name, String address) {
        this.name = name;
        this.address = address;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Order order = (Order) o;
        return Objects.equals(name, order.name) && Objects.equals(address, order.address);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, address);
    }


}
